import vue from 'vue'
import vuex from 'vuex'
vue.use(vuex)
import P from 'vuex-persist'
const p = new P({
  storage: window.sessionStorage,
})
export default new vuex.Store({
  plugins: [p.plugin],
  strict: true,
  state: {
    login: false,
  },
  mutations: {
    SET_LOGIN(state) {
      state.login = true
    },
  },
})
